/* 工具栏基础样式 */
.toolbar {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 工具栏行样式 */
.toolbar .row {
    margin: 0 -0.5rem;
}

.toolbar .col-auto {
    padding: 0 0.5rem;
}

/* 筛选器样式 */
.toolbar .form-select {
    min-width: 150px;
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    background-color: white;
    color: #1f2937;
    font-size: 0.875rem;
    line-height: 1.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 日期选择器组样式 */
.toolbar .input-group {
    min-width: 320px;
}

.toolbar .input-group-text {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.toolbar .form-control[type="date"] {
    min-width: 130px;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    color: #1f2937;
    font-size: 0.875rem;
}

/* 搜索框样式 */
.toolbar .search-container {
    position: relative;
    min-width: 250px;
}

.toolbar .search-container .form-control {
    padding-right: 2.5rem;
    padding-left: 1rem;
    height: 38px;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.toolbar .search-container .btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 0 0.75rem;
    border: none;
    background: transparent;
    color: #6b7280;
}

/* 按钮组样式 */
.toolbar .btn-group {
    gap: 0.5rem;
}

.toolbar .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.toolbar .btn i {
    font-size: 1rem;
}

/* 导出按钮样式 */
.toolbar .btn-outline-primary {
    color: #2563eb;
    border-color: #2563eb;
}

.toolbar .btn-outline-primary:hover {
    background-color: #2563eb;
    color: white;
}

.toolbar .btn-outline-danger {
    color: #dc2626;
    border-color: #dc2626;
}

.toolbar .btn-outline-danger:hover {
    background-color: #dc2626;
    color: white;
}

/* 下拉菜单样式 */
.toolbar .dropdown-menu {
    min-width: 160px;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.toolbar .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #1f2937;
}

.toolbar .dropdown-item:hover {
    background-color: #f3f4f6;
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
    .toolbar {
        background-color: #1f2937;
    }

    .toolbar .form-select,
    .toolbar .form-control,
    .toolbar .input-group-text {
        background-color: #374151;
        border-color: #4b5563;
        color: #f3f4f6;
    }

    .toolbar .btn-outline-primary {
        color: #60a5fa;
        border-color: #60a5fa;
    }

    .toolbar .btn-outline-primary:hover {
        background-color: #60a5fa;
        color: #1f2937;
    }

    .toolbar .btn-outline-danger {
        color: #f87171;
        border-color: #f87171;
    }

    .toolbar .btn-outline-danger:hover {
        background-color: #f87171;
        color: #1f2937;
    }

    .toolbar .dropdown-menu {
        background-color: #1f2937;
        border-color: #4b5563;
    }

    .toolbar .dropdown-item {
        color: #f3f4f6;
    }

    .toolbar .dropdown-item:hover {
        background-color: #374151;
    }
} 